Skip to content

Rewrite the action as a javascript action #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 29, 2025
Merged

Conversation

gnalh
Copy link
Collaborator

@gnalh gnalh commented Apr 14, 2025

This allows us much more flexibility and ease of testing.

@gnalh gnalh force-pushed the gabe/action-rewrite branch 2 times, most recently from d1aaa83 to 184916f Compare April 14, 2025 22:50
@gnalh gnalh force-pushed the gabe/action-rewrite branch from 184916f to 8a16313 Compare April 14, 2025 23:46
@gnalh gnalh force-pushed the gabe/action-rewrite branch from 48c11be to a66856f Compare April 16, 2025 16:51
@gnalh gnalh changed the title [WIP] Rewrite the action as a javascript action Rewrite the action as a javascript action Apr 16, 2025
Comment on lines +50 to +52
github-token:
description: The GitHub token used to create an authenticated client
default: ${{ github.token }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is automatic, but also necessary since it can't be extracted below.

@gnalh gnalh force-pushed the gabe/action-rewrite branch from a66856f to ecd18fe Compare April 16, 2025 16:59
@gnalh gnalh force-pushed the gabe/action-rewrite branch from ecd18fe to 977411a Compare April 16, 2025 17:07
@gnalh gnalh requested a review from cmillar-trunk April 16, 2025 17:09
@gnalh gnalh marked this pull request as ready for review April 16, 2025 17:09
@gnalh gnalh requested a review from TylerJang27 April 16, 2025 17:09
const token = core.getInput("github-token");
if (!token) {
core.error(
"GITHUB_TOKEN is not set. Please ensure the job has the necessary permissions. Attempting to run unauthenticated.",
Copy link
Collaborator Author

@gnalh gnalh Apr 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grabbing the token is automatic (unless overriden). We can work without it, we just hit lower rate limits.

Copy link

trunk-staging-io bot commented Apr 16, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@gnalh gnalh requested a review from cmillar-trunk April 16, 2025 18:11
Copy link

trunk-io bot commented Apr 16, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@gnalh gnalh merged commit d7aaa34 into main Apr 29, 2025
3 checks passed
@gnalh gnalh deleted the gabe/action-rewrite branch April 29, 2025 18:08
@gnalh gnalh restored the gabe/action-rewrite branch April 29, 2025 18:36
gnalh added a commit that referenced this pull request Apr 29, 2025
gnalh added a commit that referenced this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants